import request from '@/utils/request'

// 登录授权
export function frontLogin(username, password, code, uuid) {
  return request({
    url: 'aip/front/auth/login',
    method: 'post',
    data: {
      username,
      password,
      code,
      uuid
    }
  })
}

export function frontGetInfo() {
  return request({
    url: 'aip/front/auth/info',
    method: 'get'
  })
}

export function frontGetCodeImg() {
  return request({
    url: 'aip/front/auth/code',
    method: 'get'
  })
}

export function frontLogout() {
  return request({
    url: 'aip/front/auth/logout',
    method: 'delete'
  })
}
